<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>

	<ui:composition>
		<ui:decorate template="/facelets/template/mainTemplate.xhtml">
			<ui:define name="title">
				<h:outputText value="#{dictionaryBundle.flagList}"/>
			</ui:define>
			<ui:define name="center">
				<ui:decorate template="/facelets/template/centerTemplate.xhtml">
					<ui:define name="content">

						<a4j:form>
							<h:outputText value="#{studentBundle.student}:" styleClass="requiredField"/>
							<rich:spacer width="15"/>
							<h:outputText value="#{studentBean.record.lastName}" styleClass="requiredField"/>
							<rich:spacer width="15"/>
							<h:outputText value="#{studentBean.record.firstName} " styleClass="requiredField"/>
							<rich:spacer width="15"/>
							<h:outputText value="#{studentBean.record.middleName} " styleClass="requiredField"/><br/>
							<br/>

							<h:outputText value="#{studentBundle.transferOnBasis}:"/>
							<br/>
							<ui:decorate template="/facelets/template/student/eventReasonTemplate.xhtml">
								<ui:param name="idPrefix" value="studentTransfer"/>
								<ui:param name="event" value="#{studentBean.transferEvent}"/>
							</ui:decorate>
							<br/>
							<h:outputText value="#{studentBundle.inGroup}:"/>
							<br/>
							<br/>
							<ui:decorate template="/facelets/template/student/studentDepartmentEdit.xhtml">
								<ui:param name="idPrefix" value="studentTransfer"/>
								<ui:param name="student" value="#{studentBean}"/>
								<ui:param name="anyValue" value="true"/>
							</ui:decorate>
							<br/>

							<a4j:commandButton id="butSave" value="#{commonBundle.transfer}"
											   action="#{studentBean.saveTransfer}"/>

							<a4j:commandButton id="butCancel" value="#{commonBundle.cancel}"
											   action="#{studentBean.cancelEventStudent}" immediate="true"/>

						</a4j:form>

					</ui:define>
				</ui:decorate>
			</ui:define>
		</ui:decorate>
	</ui:composition>

</f:view>
